<?php
/**
 * Created by PhpStorm.
 * User: chniccs
 * Date: 2019-11-09
 * Time: 17:10
 */

namespace app\app\controller;


use app\model\AppWxUser;
use app\util\ReturnCode;

class User extends Base
{
    public function getUserInfo(){
        $model = AppWxUser::get($this->userInfo['uid'],null,true);
        if($model){
            return $this->buildSuccess($model->getData());
        }
        return $this->buildFailed(ReturnCode::FAILED,'获取用户信息失败');
    }
}